/*************************************************
 * 
 * Copyright by Bruno Eberhard
 * 
 * Created on 23.07.2005
 *
 *************************************************/
package fightplan.core;

import java.awt.Image;
import java.net.URL;

import javax.swing.Icon;
import javax.swing.ImageIcon;

import fightplan.FightPlan;

public class Resources {

	public static Icon getIcon(String name) {
		URL url = FightPlan.class.getResource("icons/" + name);
		return new ImageIcon(url);
	}

	public static Image getImage(String name) {
		URL url = FightPlan.class.getResource("icons/" + name);
		return new ImageIcon(url).getImage();
	}

}
